package com.steel.yfmall.cloud.assistant.goods.impl;

import com.steel.yfmall.cloud.assistant.goods.FrameworkContractAddressInfoService;
import com.steel.yfmall.cloud.assistant.goods.mapper.FrameworkContractAddressInfoMapper;
import com.steel.yfmall.cloud.assistant.po.goods.FrameworkContractAddressInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 龙飞
 * @version 1.0
 * @since 2021/01/05 星期二 12:47
 */

@Service
public class FrameworkContractAddressInfoServiceImpl implements FrameworkContractAddressInfoService {
    @Override
    public FrameworkContractAddressInfo selectByPrimaryKey(String commerceContractNo) {
        return frameworkContractAddressInfoMapper.selectByPrimaryKey(commerceContractNo);
    }

    @Override
    public int insert(FrameworkContractAddressInfo info) {
        return frameworkContractAddressInfoMapper.insert(info);
    }

    @Override
    public int update(FrameworkContractAddressInfo info) {
        return frameworkContractAddressInfoMapper.updateByPrimaryKeySelective(info);
    }

    @Resource
    private FrameworkContractAddressInfoMapper frameworkContractAddressInfoMapper;
}
